/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #24292e;
    line-height: 1.6;
}

/* 顶部导航 */
.nav {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #e1e4e8;
    text-align: right;
}

.nav a {
    font-size: 0.875rem;
    color: #24292e;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav a:hover {
    background-color: #f6f8fa;
}

/* 认证区域容器，垂直居中 */
.auth-container {
    min-height: calc(100vh - 60px);  /* 减去 nav 区域高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 认证框 */
.auth-box {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(27, 31, 35, 0.15);
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 8px; */
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #586069;
}
.error-label {
    color: #ff4d4f;
    font-size: 12px;
    margin-left: 8px;
}
.agreement-container {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
}
.agreement-error {
    color: #ff4444;
    font-size: 12px;
    display: inline-block;
    margin-left: 10px;
}
[v-cloak] {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}
.error-text {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}
.error-input {
    border-color: #ff4444 !important;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2ea44f;
}

/* 用户协议 */
.agreement {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #586069;
}

.checkbox-label input {
    margin-right: 5px;
}

.agreement-link {
    color: #2ea44f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agreement-link:hover {
    color: #2c974b;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #2ea44f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2c974b;
}

/* 底部提示 */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #2ea44f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #2c974b;
}

/* 响应式处理 */
@media (max-width: 480px) {
    .auth-box {
        padding: 20px;
    }
}
